﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GroundStation.Models
{
    // This is the class that represents Relay Commands. When the user clicks the Send Button (and if any relays have changed), RelayMessage objects will be created and sent to TowerTop. For each relay that is changed (of the 5) a message will be created
    class RelayMessage:Message
    {
        private int _relayID;
        int RelayID
        {
            get
            {
                return _relayID;
            }
            set
            {
                _relayID = value;
            }
        }
        public override  void SetPayload(String input)
        {
            commandString = Status + _relayID + input;
            
        }
    }
}
